﻿package mortal.component.skin.button
{
    import com.mui.controls.*;
    import com.mui.core.*;
    import com.mui.display.*;
    import com.mui.skins.*;
    import fl.core.*;
    import flash.geom.*;
    import flash.text.*;
    import mortal.common.*;

    public class GroupButton extends SkinStyle
    {
        private var _scaleRect:Rectangle;
        private var _textFormat:TextFormat;
        private var _diableTextFormat:TextFormat;

        public function GroupButton()
        {
            this._scaleRect = new Rectangle(19, 11, 1, 1);
            this._textFormat = new GTextFormat(null, 12, 14005922);
            this._diableTextFormat = new GTextFormat(null, 12, 8158332);
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            var _loc_2:* = GlobalClass.getScaleBitmap("GroupBtn_upSkin", this._scaleRect);
            var _loc_3:* = GlobalClass.getScaleBitmap("GroupBtn_overSkin", this._scaleRect);
            param1.setStyle("upSkin", _loc_2);
            param1.setStyle("downSkin", _loc_2);
            param1.setStyle("overSkin", _loc_3);
            param1.setStyle("disabledSkin", _loc_3);
            param1.setStyle("textFormat", this._textFormat);
            param1.setStyle("disabledTextFormat", this._diableTextFormat);
            param1.setStyle("textPadding", 0);
            param1.setStyle("selectedUpSkin", _loc_3);
            param1.setStyle("selectedDownSkin", _loc_3);
            param1.setStyle("selectedOverSkin", _loc_3);
            (param1 as GButton).paddingTop = 2;
            return;
        }// end function

    }
}
